package org.smr.ministore.service.impl;

import java.util.List;

import org.blade.dao.base.BaseMapper;
import org.blade.utils.IdGenUtils;
import org.blade.utils.Pager;
import org.blade.service.base.AbstractService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.smr.ministore.dao.GoodsPriceOrganMapper;
import org.smr.ministore.entities.GoodsPriceOrgan;
import org.smr.ministore.service.GoodsPriceOrganService;

import org.springframework.beans.factory.annotation.Autowired;


import org.springframework.stereotype.Service;

@Service("GoodsPriceOrganService")
public class GoodsPriceOrganFacade extends AbstractService<Long, GoodsPriceOrgan> implements GoodsPriceOrganService {


    private static Logger logger = LoggerFactory.getLogger(GoodsPriceOrganFacade.class);

	@Autowired
	private GoodsPriceOrganServiceImpl service;

	@Autowired
	public GoodsPriceOrganFacade(GoodsPriceOrganMapper mapper) {
		super(mapper);
	}

	public int save(GoodsPriceOrgan entity) {

		return service.save(entity);
	}

	public int updateById(GoodsPriceOrgan id) {

		return service.updateById(id);
	}

	public GoodsPriceOrgan queryById(Long id) {
		return service.queryById(id);
	}

	public int deleteById(Long id) {
		return service.deleteById(id);
	}

	public Pager<GoodsPriceOrgan> paginate( GoodsPriceOrgan entity, Long pageSize, Long pageNum) {

		return service.paginate(entity, pageSize, pageNum);
    }
	
	public int batchSave(List<GoodsPriceOrgan> entities) {
		return service.batchSave(entities);
	}


    public int batchModify(List<GoodsPriceOrgan> entities) {
        return service.batchModify(entities);
        }


    public int deleteByIdLogical(Long id) {
        return service.deleteByIdLogical(id);
    }


	public Long getId() {
		return IdGenUtils.getNextLongId();
	}
}
